package com.sunny.myproject.storem.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.produce.entity.Mrp;
import com.sunny.myproject.system.entity.IdEntity;

/**
 * 主要存储mrp之后的采购
 * 当该产品生产完成之后，设置成已完成
 * @author sunny_nie
 *
 */
@Entity
@Table(name="tb_store_temp")
public class Warehouse_temp extends IdEntity{

	private Mrp mrp;

	private Materiel materiel;
	
	private double amount;
	
	/**
	 * 完成后，设置成finished
	 */
	private String status;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@ManyToOne(targetEntity=Mrp.class)
	public Mrp getMrp() {
		return mrp;
	}

	public void setMrp(Mrp mrp) {
		this.mrp = mrp;
	}

	@ManyToOne(targetEntity=Materiel.class)
	public Materiel getMateriel() {
		return materiel;
	}

	public void setMateriel(Materiel materiel) {
		this.materiel = materiel;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}
	
	
}
